package org.example.aitest.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.aitest.dto.TableDto;
import org.example.aitest.entity.Purchase;

import java.util.List;
import java.util.Map;

/**
 * (Purchase)表数据库访问层
 *
 * @author makejava
 * @since 2025-04-25 11:15:35
 */
@Mapper
public interface PurchaseDao extends BaseMapper<Purchase> {

    @Select("SELECT COLUMN_NAME,COLUMN_COMMENT" +
            "  FROM INFORMATION_SCHEMA.COLUMNS" +
            " WHERE TABLE_SCHEMA = DATABASE()" +
            " AND TABLE_NAME = 'purchase'")
    public List<TableDto> getCcm();
}

